package com.xyx.ssm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyx.ssm.jdbcdao.PurchaseorderDao;
import com.xyx.ssm.po.WineBrand;
import com.xyx.ssm.po.purchaseordersub;
import com.xyx.ssm.service.PurchaseorderService;
import com.xyx.ssm.util.Page;
@Service
public class PurchaseorderServiceImpl implements PurchaseorderService {
	@Autowired
	private PurchaseorderDao purchaseorder;

	@Override
	public Page<Map<String, Object>> selallPurchaseorder(
			Page<Map<String, Object>> page) {
		// TODO Auto-generated method stub
		return purchaseorder.findPage("com.xyx.ssm.jdbcdao.PurchaseorderDao.SelectAllpage", page);
	}

	@Override
	public Map<String, Object> selpurchaseordersub(Integer phoid) {
		// TODO Auto-generated method stub
		return purchaseorder.selpurchaseordersub(phoid);
	}

	@Override
	public List<Map<String, Object>> selwine(int phoid) {
		// TODO Auto-generated method stub
		return purchaseorder.selwine(phoid);
	}

	@Override
	public List<Map<String,Object>> selallwine() {
		// TODO Auto-generated method stub
		return purchaseorder.selallwine();
	}

	@Override
	public List<purchaseordersub> selwine111() {
		// TODO Auto-generated method stub
		return purchaseorder.selwine111();
	}

	@Override
	public int updatewinenum(purchaseordersub pur) {
		// TODO Auto-generated method stub
		return purchaseorder.updatewinenum(pur);
	}

	@Override
	public int insertpurchaseordersub(purchaseordersub pur) {
		// TODO Auto-generated method stub
		return purchaseorder.insertpurchaseordersub(pur);
	}

	
	
	

	
	

}
